package com.msb.mall.product.feign.fallback;

import com.msb.common.exception.BizErrorCodeEnum;
import com.msb.common.vo.CommonResult;
import com.msb.mall.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SeckillFeignServiceFallback implements SeckillFeignService {

    @Override
    public CommonResult getSeckillSessionBySkuId(Long skuId) {
        log.error("熔断降级....SeckillFeignService:{}",skuId);
        return CommonResult.error(BizErrorCodeEnum.UNKNOWN_EXCEPTION.getCode(),BizErrorCodeEnum.UNKNOWN_EXCEPTION.getMsg());
    }
}
